import { businessUrl } from "../config/env";
import request from "../config/axios";

// 获取砍价产品数据
export const yxStoreBargain = ({pageNum,pageSize})=>request({
    url:`${businessUrl}api/yxStoreBargain?page=${pageNum}&size=${pageSize}&sort=id%2Cdesc`,
    method:"GET",
})
// 编辑提交
export const apiYxStoreBargain = (data)=>request({
    url:`${businessUrl}api/yxStoreBargain`,
    method:'put',
    data
})
// 删除砍价数据
export const delStoreBargain = (id)=>request({
    url:`${businessUrl}api/yxStoreBargain/${id}`,
    method:"DELETE"
})
